import {HYEventStore} from 'hy-event-store';
import {getSongMenu} from '../service/api-music'


  const store = new HYEventStore({
    state:{
        recommendList:[]
    },
    actions:{
       async fetchRecommendDate(ctx){
        const res = await getSongMenu(); //数组前6个
        console.log(res);
        ctx.recommendList = res.playlists
        }
    }
})

export default store;